//
//  LFShopCarPayFoodCell.m
//  LoveFruit
//
//  Created by libbbb on 16/9/25.
//  Copyright © 2016年 张令林. All rights reserved.
//

#import "LFShopCarPayFoodCell.h"
#import "LFHotSellerModel.h"

@interface LFShopCarPayFoodCell ()

@property (weak, nonatomic) IBOutlet UIImageView *imaView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *numLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@end
@implementation LFShopCarPayFoodCell

#pragma mark - 重写setter方法赋值
- (void)setArrayDataModelsList:(LFHotSellerModel *)arrayDataModelsList
{
    _arrayDataModelsList = arrayDataModelsList;
    
    [self.imaView sd_setImageWithURL:[NSURL URLWithString:arrayDataModelsList.img] placeholderImage:[UIImage imageNamed:@"icon_icons_holder"]];
    self.nameLabel.text = arrayDataModelsList.name;
    self.numLabel.text = [NSString stringWithFormat:@"x%ld",arrayDataModelsList.ismix];
    self.priceLabel.text = [NSString stringWithFormat:@"$%0.2f",[arrayDataModelsList.price floatValue]];
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
